package cn.iocoder.yudao.module.train.controller.admin.appointment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 预约 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppointmentRespVO {

    @Schema(description = "预约ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26476")
    @ExcelProperty("预约ID")
    private Integer id;

    @Schema(description = "学生ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20014")
    @ExcelProperty("学生ID")
    private Long studentId;

    @Schema(description = "学生姓名")
    @ExcelProperty("学生姓名")
    private String studentName;

    @Schema(description = "教师姓名")
    @ExcelProperty("教师姓名")
    private String teacherName;

    @Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13955")
    @ExcelProperty("商品ID")
    private Long commodityId;

    @Schema(description = "商品名称")
    @ExcelProperty("商品名称")
    private String commodityName;

    @Schema(description = "场地ID", example = "14489")
    @ExcelProperty("场地ID")
    private Integer venueId;

    @Schema(description = "场地")
    @ExcelProperty("场地")
    private String venueNo;

    @Schema(description = "预约日期")
    @ExcelProperty("预约日期")
    private LocalDateTime appointmentDate;

    @Schema(description = "预约时间段(tr_course_time字典)")
    @ExcelProperty(value = "预约时间段(tr_course_time字典)", converter = DictConvert.class)
    @DictFormat("train_course_time") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer timeRange;

    @Schema(description = "预约状态", example = "2")
    @ExcelProperty(value = "预约状态", converter = DictConvert.class)
    @DictFormat("train_appointment_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer appointmentStatus;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
